package com.blog.service.admincategory;

import java.util.List;

import com.blog.dao.admincategory.AdminCategoryDao;
import com.blog.entity.TypesEntity;

public class AdminCategoryService {
	
	AdminCategoryDao dao = new AdminCategoryDao();

	/**
	 * 查看所有分类
	 */
	public List<TypesEntity> queryAllTypes() {
		return dao.queryAllTypes();
	}
	
	/**
	 * 修改分类
	 */
	public int updateTyeps(String name , int num) {
		return dao.updateTyeps(name,num);
		
	}
}
